package com.shangguan.atcrowdfunding.utils;

/**
 * @ClassName: StringUtil
 * @Description: 判断字符串是否为空
 * @Author: 一尘
 * @Date: 2020 年 01 月 15 9:54
 * @Version 1.0
 */
public class StringUtil {

    public static boolean isEmpty(String s) {
        return s == null || "".equals(s);  //     s == null | s.equals("");  //位与,逻辑与区别,非空字符串放置在前面,避免空指针
    }

    public static boolean isNotEmpty(String s) {
        return !isEmpty(s);
    }
}